package com.kehutong.charge.entity;

import org.coraframework.json.annotation.JSONField;
import org.coraframework.orm.Entity;
import org.coraframework.orm.annotation.Column;
import org.coraframework.orm.annotation.Table;
import org.coraframework.orm.util.IDType;

import java.math.BigDecimal;

/**
 * @program: kht
 * @description: ChargeLadderConfig
 * @author: joneron
 * @create: 2021/6/23
 **/
@Table(value="t_charge_ladder_config", comment="收费阶梯价配置表",multi = true, idType = IDType.TIMESTAMP, engine = "innodb")
public class ChargeLadderConfig extends Entity {

    private static final long serialVersionUID = 2101701528225269733L;

    protected ChargeLadderConfig(String id) {
        super(id);
    }

    @Column(comment="项目配置id")
    private String chargeProjectNo;

    @Column(comment="费用分类")
    private String usageType;

    @Column(comment="用量范围开始")
    private BigDecimal usageStart;

    @Column(comment="用量范围结束")
    private BigDecimal usageEnd;

    @Column(comment="用量范围单价")
    private BigDecimal usagePrice;

    @JSONField(serialize = false)
    @Column(comment = "逻辑删除")
    private boolean deleted;

    @Column(comment = "创建人")
    private String createName;

    @Column(comment = "修改人")
    private String updateName;


    public String getUsageType() {
        return usageType;
    }

    public void setUsageType(String usageType) {
        this.usageType = usageType;
    }

    public BigDecimal getUsageStart() {
        return usageStart;
    }

    public void setUsageStart(BigDecimal usageStart) {
        this.usageStart = usageStart;
    }

    public BigDecimal getUsageEnd() {
        return usageEnd;
    }

    public void setUsageEnd(BigDecimal usageEnd) {
        this.usageEnd = usageEnd;
    }

    public BigDecimal getUsagePrice() {
        return usagePrice;
    }

    public void setUsagePrice(BigDecimal usagePrice) {
        this.usagePrice = usagePrice;
    }

    public boolean isDeleted() {
        return deleted;
    }

    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
    }

    public String getCreateName() {
        return createName;
    }

    public void setCreateName(String createName) {
        this.createName = createName;
    }

    public String getUpdateName() {
        return updateName;
    }

    public void setUpdateName(String updateName) {
        this.updateName = updateName;
    }

    public String getChargeProjectNo() {
        return chargeProjectNo;
    }

    public void setChargeProjectNo(String chargeProjectNo) {
        this.chargeProjectNo = chargeProjectNo;
    }
}
